package com.example.erp;

import java.time.Duration;

import org.springframework.ai.mcp.customizer.McpSyncClientCustomizer;
import org.springframework.context.annotation.Configuration;
import io.modelcontextprotocol.client.McpClient;

/**
 * 
 */
@Configuration
public class McpConfig implements McpSyncClientCustomizer {

	@Override
    public void customize(String name, McpClient.SyncSpec spec) {
        // do nothing
        // 设置请求的超时时间为30秒
        spec.requestTimeout(Duration.ofSeconds(30));
    }

}
